
@dic = Hash.new

begin
  puts("find: ")
  @k=gets.to_s.chomp
  if(@dic.has_key?(@k))
    puts(@dic.values_at(@k))
  else
    puts("meaning: ")
   v = gets.to_s.chomp
   
    @newhash = {@k=>v}
   @dic.merge!(@newhash)
  end
    
  puts(" Find next ? yes/no")
  @vs = gets.to_s.chomp
  end while(@vs=="yes")


puts(@newhash)
puts(@dic)